<?php
class appConstsPOCClass {
	var $DBUSERNAME;
	var $DBPASSWORD;
	var $DBNAME;
	var $SERVER; 
	var $DEBUG;
	public static $staticObj;
	
	private function appConstsPOCClass() {
		
	}
	
	static function getInstance() {
		if($staticObj == null) {
		   $staticObj = new appConstsPOCClass();	
		}
		return $staticObj;
	} 
	
	
	function initialize()  {
		$this->SERVER = $_SERVER['SERVER_ADDR'];
		if ($this->SERVER == '192.186.249.4') {
			$this->DBUSERNAME = 'relsell';
			$this->DBPASSWORD = '2502success';
			$this->DBNAME = 'gcmdemo';
		} else {
			$this->SERVER = '127.0.0.1';
			$this->DBUSERNAME = 'root';
			$this->DBPASSWORD = 'success';
			$this->DBNAME = 'gcmdemo';
		}
		$this -> DEBUG = false;
		
	}
}
?>